import cv2
import numpy as np
img=cv2.imread('dog.jpg')
print (img.item(10,10,2))
img.itemset((10,10,2),100)
print (img.item(10,10,2))